
  <?php
  $mysql->query("Select * From post where category='tintuc' and anhien='1' and id!='26'");
                                    while($row=$mysql->fetchRow()){
                                     $primary=$row[primary];
                                      
                                  ?>
                                    
                                    <div class="post-show" style="line-height: 24px;">
                                        <a href="index.php?gioithieu=832&showpost=readmore&p=<?php echo $row[id];?>"><img class="img" src="upload/<?php echo$row[img];?>" /></a>
                                       
                                        
                                           <?php
                                            echo"<h3><a class='title_h' href='index.php?gioithieu=832&showpost=readmore&p={$row[id]}'>$row[title].</a></h3>";
                                             
                                             $primary=strip_tags($primary);
                                             if(strlen($primary)>100){
                                                $strcut=substr($primary,0,500);
                                                $primary1 = substr($strcut, 0, strrpos($strcut, ' '))."... <a class='readmore' href='index.php?gioithieu=832&showpost=readmore&p={$row[id]}'>Read More  <img class='icon_read' src='images/read_more_icon.gif' /> </a>";
                                                } 
                                                echo"<p class='nd'>{$primary1}</p>";
                                           ?>
                                       
                                       
                                        <div class="metadata">
                                           <p class="cate"><?php echo $row[category];?></p>
                                           <p class="author"><?php echo $row[tacgia];?></p>
                                           <p class="time"><?php echo $row[time];?></p>
                                        </div>
                                         <div class="clear"></div>
                                    </div>
                                   
                                  <?php
                                   $mysql->disconnect();
                                   }
                                